﻿<phone:PhoneApplicationPage 
    x:Class="temp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:Toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:live ="clr-namespace:Microsoft.Live.Controls;assembly=Microsoft.Live.Controls"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource TransparentBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="False" Title="Immunity Buster">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Brown">
 
          
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        

        <!--TitlePanel contains the name of the application and page title-->
        <ScrollViewer HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Disabled">
            <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28" >
                <ProgressBar IsIndeterminate="True" Visibility="Collapsed" x:Name="pb1" />
                <TextBlock Text="Loading Countries..."  Visibility="Collapsed" x:Name="ptb1"/>
                <TextBlock x:Name="tb1" Text="Immunity Buster" FontSize="79" Style="{StaticResource PhoneTextTitle1Style}"/>
            </StackPanel>
        </ScrollViewer>

        <!--ContentPanel - place additional content here-->
        <StackPanel x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            
            <!--Create a single button to navigate to the second page which is rendered with the XNA Framework-->
            <StackPanel Name="stackPanel1" Width="342" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="60,6,54,0" >
                <Button Height="100" Content="Resume" Click="Button_Click_6" Visibility="Collapsed" />
                <Button Height="100" Content="Play!" Click="Button_Click" />
                <!--<Button Content="Settings" Height="100" Click="Button_Click_3" />-->
                <Button Content="Rules" Height="100" Click="Button_Click_4" />
            </StackPanel>
            
            
            <controls:Panorama Height="408" VerticalAlignment="Bottom" Loaded="Pivot_Loaded" Margin="-6,0,6,6"  ScrollViewer.VerticalScrollBarVisibility="Visible">                
                <controls:Panorama.Background>
                    <ImageBrush/>
                </controls:Panorama.Background>
                <controls:PanoramaItem x:Name="Item1" Header="Settings" VerticalAlignment="Top">
                    <ListBox>
                        <Toolkit:ToggleSwitch x:Name="EasyModeSw" Content="Easy Mode" IsChecked="True" VerticalAlignment="Stretch" Width="430" Checked="ToggleSwitch_Checked" Unchecked="ToggleSwitch_Checked"/>
                        <Toolkit:ToggleSwitch Content="Enable Accelerometer" Width="430" IsChecked="True" x:Name="control" Checked="ToggleSwitch_Checked" Unchecked="ToggleSwitch_Checked"/>
                        <Toolkit:ToggleSwitch Name="mute" Content="Mute" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="430" Checked="ToggleSwitch_Checked" Unchecked="ToggleSwitch_Checked" />
                        <!--<Slider Name="volume" Width="396" ValueChanged="ToggleSwitch_Checked"/>
                        <Image x:Name="Image1" Height="300" VerticalAlignment="Stretch" Width="445"/>-->
                    </ListBox>
                </controls:PanoramaItem>
                <controls:PanoramaItem Header="Profile">
                    <ListBox>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="Name" VerticalAlignment="Center" FontSize="25"/>
                            <TextBox x:Name="name1" Width="374" />
                        </StackPanel>
                        <Toolkit:ListPicker x:Name="countryList" Header="Country" Width="425" FontSize="25" />
                        <Toolkit:DatePicker x:Name="datePicker1" Header="BirthDate" />
                        <Image x:Name="UserImage" Height="200" Width="200" Tap="Button_Click_5" Source="Content/default_user.png"/>
                        <!--<StackPanel Orientation="Horizontal">
                            <Button Content="Select From Existing Profiles" Click="Button_Click_6" Width="200" />
                        </StackPanel>-->
                        <Button Content="Save" Click="Button_Click_2" />
                        <StackPanel Orientation="Horizontal">
                            <Toolkit:ListPicker x:Name="proileExplorer" Header="Choose Existing Profiles" Width="400" Visibility="Visible" />

                        </StackPanel>
                        <Button Content="Load" Click="Button_Click_7" />
                    </ListBox>
                </controls:PanoramaItem>
                <controls:PanoramaItem Header="About">
                    <StackPanel>
                        <TextBlock Text="Immunity Buster" FontSize="40" />
                        <TextBlock Text="Version 1.02" />
                        <TextBlock Text="Developed by Rushabh™" />
                        <HyperlinkButton x:Name="hyp1" FontSize="20" Click="hyp1_Click" Content="Website" HorizontalAlignment="Left" />
                        <Button Content="Feedback" Click="Button_Click_1" />
                    </StackPanel>
                </controls:PanoramaItem>
            </controls:Panorama>
        </StackPanel>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>